// @APIVersion 1.0.0
// @Title 微信单向网关API
package routers

import (
	"github.com/astaxie/beego"
	"亚太-iot-服务器/conf"
	"亚太-iot-服务器/controllers"
)

func init() {
	//页面的反向代理
	initPagesReverseProxy()

	beego.AutoPrefix(conf.AppConfig.BasePrefix, &controllers.UserController{})
	beego.AutoPrefix(conf.AppConfig.BasePrefix, &controllers.WxController{})
	beego.Router(conf.AppConfig.BasePrefix+"Ws/ws", &controllers.WxController{}, "*:Ws")
	beego.AutoPrefix(conf.AppConfig.BasePrefix, &controllers.GatewayController{})
}
